#ifndef __CROSSHAIR_HH__
#define __CROSSHAIR_HH__

#include <opengl/vertex.h>
#include <opengl/texture.h>
#include <opengl/shader.h>
#include <string>

namespace mc
{

class Crosshair
{
public:
    // 构造
    Crosshair() = default;
    Crosshair(const std::string& texturePath);
    ~Crosshair() noexcept;

    void draw();

    static void createShader();
    static void prepareRender();

private:
    opengl::Texture* _texture;
    opengl::VertexArray _vao;
    opengl::VertexBuffer _vbo;

    static opengl::Shader shader;
    static float vertices[];
};

}

#endif